/**
 * Copyright (C) 2016 Juno Inc., All Rights Reserved.
 */
package com.jyl.designPattern.structure.decorator;

/**
 *
 * @author Long, E-mail:jyl0401@163.com
 * @date 2019年4月20日 下午9:25:36
 */
public class Test {

	public static void main(String[] args) {
		Beverage beverage = new DarkRoast();
		beverage = new Milk(beverage);
		beverage = new Mocha(beverage);
		System.out.println(beverage.cost());
	}
}
